//
//  PdfHandler.m
//  gdemm
//
//  Created by 乔明超 on 16/5/5.
//  Copyright © 2016年 Goldencis. All rights reserved.
//

#import "PdfHandler.h"
#import "WebViewController.h"
@implementation PdfHandler
- (BOOL)isSupportedType:(NSString *)suffix{
    
    return  [suffix caseInsensitiveCompare:@"pdf"] == NSOrderedSame;
}

- (UIViewController *)getControllerForFilePath:(NSString *)filePath{
    NSString *path = [self getDecryptedPath:filePath];
    if (path == nil) {
        return nil;
    }
    WebViewController  *webVc = [[WebViewController alloc]init];
    webVc.path = path;
    return webVc;
}

- (NSString *)getIconWithFileName:(NSString *)fileName enced:(BOOL)isEnced{
    NSString *icon;
    icon = isEnced ? @"cloudDisk_icon_pdf_enced" : @"cloudDisk_icon_pdf";
    return icon;
}
@end
